package net.hangar5.xmlrpc;

/* IReflection.java

The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/

Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.

The Original Code is "Hangar5 XMLRPC Library".

The Initial Developer of the Original Code is James D. Rudnicki.  
Portions created by James D. Rudnicki are
Copyright (C) 2001.  All Rights Reserved.

Contributor(s): 
*/
/**
 * IReflection allows clients to determine a method's prototype. 
 * Although it can be used by programs, it
 * is mainly intended to provide on-line documentation for functions.
 * The DualRpcServer provides web pages that show available methods
 * and the information provided by this interface.
 */
public interface IReflection {

  /**
   * Get the description of the method.
   */
  public String getDescription();  
  /**
   * Get the number of parameters required for this Method
   */
  public int getNparams();  
  /**
   * Get the name of the n-th parameter as a string.
   */
  public String getParamName( int n );  
  /**
   * Get the type of the n-th parameter as a string.
   */
  public String getParamType( int n );  
  /** 
   * Get the type of the return value as a string.
   */
  public String getReturnType();  
}
